package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.google.common.collect.Maps;
import com.kly.user.db.dao.ChatterMsgSendTotalDao;
import com.kly.user.db.entity.ChatterMsgSendTotalEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
* User: linqu
* Date: 2023-12-06
* Time: 19:25:46.880
*/

@Repository
public class ChatterMsgSendTotalDaoImpl extends AbstractBaseMapper<ChatterMsgSendTotalEntity> implements ChatterMsgSendTotalDao {
    @Override
    public List<ChatterMsgSendTotalEntity> listChatterMsgs(String fromUserId, String toUserId) {
        final HashMap<String, Object> params = Maps.newHashMap();
        params.put("fromUserCode", fromUserId);
        params.put("toUserCode", toUserId);
        params.put("deleted", 0);
        return this.getSqlSession().selectList(this.getStatement("listChatterMsgs"), params);
    }
}